package program;

public class Tax extends Field {

	public Tax(int fieldNr, int payment, String name, String type, int color, int colorNr) {
		super(fieldNr, payment, name, type, color, colorNr);
	}	

	//Temp owner er ikke brugt, men sendes for at ownable kan bruge den.
	public void landOnField(Player player, Player tempOwner) {
		if(player.withdraw(payment) == false){ // withdraw metoden virker i positive tal.
			player.setLost(true); //Sets that player to looser.
		}
	}
}